package com.marketlive.app.b2c.struts;

import java.util.Locale;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.util.MessageResourcesFactory;
import org.apache.struts.util.PropertyMessageResources;

public class MultiSitePropertyMessageResources extends PropertyMessageResources {
    
  protected static final Log log = LogFactory.getLog(MultiSitePropertyMessageResources.class);

  public MultiSitePropertyMessageResources(MessageResourcesFactory factory, String config)
  {
    super(factory, config);
  }

  public MultiSitePropertyMessageResources(MessageResourcesFactory factory, String config, boolean returnNull)
  {
    super(factory, config, returnNull);
  }

  public String getMessage(Locale locale, String key)
  {
    if (log.isDebugEnabled()) {
      log.debug("in getMessage(" + locale + "," + key + ")");
    }

    return super.getMessage(locale, key);
  }

  public String getMessage(Locale locale, String key, Object[] args) {
      return super.getMessage(locale, key, args);
  }
}